package com.hyh.main.display;

import com.hyh.main.weatherdata.Observerable;

public class StatisticsDisplay extends BaseDisplay {

	

	private float temp;
	private float humidity;
	private float pressure;
	
	public StatisticsDisplay(Observerable observable) {
		super(observable);
	}
	
	public void update(float temp, float humidity, float pressure) {
		this.temp = temp;
		this.humidity = humidity;
		this.pressure = pressure;
		display();
	}

	public void display() {
		System.out.println("StatisticsDisplay pressure="+pressure);
	}

}
